package cn.itcast.clone;

/**
 * @Author : 叶荻风
 * @create : 2024/8/5 17:04
 */
public class Address implements Cloneable{
    private String name;
    public Address(String str) {
        name = str;
    }

    @Override
    public Address clone() {
        try {
            return (Address) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
